/**
 * IBaseDao.java
 *
 *Version information
 *
 *Sep 19, 2014
 *
 *Copyright notice
 *
 *
 *
 * Modification Logs:
 * DATE 	AUTHOR 		DESCRIPTION
 * --------------------------------------------------------
 * Sep 19, 2014 	DinhTV 	Import Description of modification 
 */
package vn.fpt.fsoft.dao;

import java.io.Serializable;
import java.util.List;

import vn.fpt.fsoft.common.exception.MyException;

/**
 * @author DinhTV
 *
 */
public interface IBaseDao<T,K extends Serializable> {
	List<T> getAll() throws MyException;
	T get(K key) throws MyException;
	boolean insert(T entity) throws MyException;
	boolean update(T entity) throws MyException;
	boolean delete(K key) throws MyException;		
}
